Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] responsive image support for Markdown Post #396

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Chen-Gary
Copy link

If we add an image to a post without the right sidebar (e.g. the FAQ page in the demo), the image will not resize automatically as the window size changes.

image

I fix this by adding a Hugo "Markdown render hooks" for markdown image. Reference: https://gohugo.io/templates/render-hooks/#image-markdown-example

The image will render correctly with this file added.

image

Note: Posts with the right sidebar do render images correctly, even without this render hook (e.g. this post in demo).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant